{
int nbDocuments = -1;
if (hasAdminRights()) {
nbDocuments = getProtectedPlugin().rebuildIndex(context);
}
return nbDocuments;
}
public int rebuildIndex()
{
if (hasAdminRights()) {
return getProtectedPlugin().rebuildIndex(context);
}
return REBUILD_NOT_ALLOWED;
}